import React,{Component} from "react";

export default class Storeheader extends Component{
    render(){
        let {content,imgurl,onoff} = this.props.data;
        return(
            <div className="storeheader">
                <img src={imgurl} alt="" className="banner"/>
                <div className="content">{content}</div>
                <span className="viewmore" onClick={()=>{this.props.toggleMore()}}>{onoff?"隐藏简介":"查看更多"}</span>
            </div>
        )
    }
}